package com.zbkj.service.service.water;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zbkj.common.model.water.RzPackage;
import com.zbkj.common.page.CommonPage;
import com.zbkj.common.request.water.RzPackageRequest;
import com.zbkj.common.request.water.SearchRzPackageRequest;
import com.zbkj.common.response.water.RzPackageResponse;

public interface RzPackageService extends IService<RzPackage> {

    /**
     * 添加修改套餐
     *
     * @param request 添加修改套餐请求对象
     * @return boolean
     */
    boolean saveOrUpdatePackage(RzPackageRequest request);

    /**
     * 删除套餐
     *
     * @param id 套餐id
     * @return boolean
     */
    boolean deletePackage(Integer id);

    /**
     * 套餐分页列表
     *
     * @param request 套餐分页列表查询请求对象
     * @return CommonPage<RzPackageResponse>
     */
    CommonPage<RzPackageResponse> getPackageList(SearchRzPackageRequest request);
}
